import request from '@/utils/request'

// 查询齐套分析列表
export function listAnalysis(query) {
  return request({
    url: '/mes/pro/analysis/list',
    method: 'get',
    params: query
  })
}

// 查询齐套分析详细
export function getAnalysis(id) {
  return request({
    url: '/mes/pro/analysis/' + id,
    method: 'get'
  })
}

// 新增齐套分析
export function addAnalysis(data) {
  return request({
    url: '/mes/pro/analysis',
    method: 'post',
    data: data
  })
}

// 修改齐套分析
export function updateAnalysis(data) {
  return request({
    url: '/mes/pro/analysis',
    method: 'put',
    data: data
  })
}

// 删除齐套分析
export function delAnalysis(id) {
  return request({
    url: '/mes/pro/analysis/' + id,
    method: 'delete'
  })
}

// 查询齐套分析详细
export function fenxi(id) {
  return request({
    url: '/mes/pro/analysis/fenxi/' + id,
    method: 'get'
  })
}

// 查询齐套分析详细
export function suoding(id) {
  return request({
    url: '/mes/pro/analysis/suoding/' + id,
    method: 'get'
  })
}

// 查询齐套分析详细
export function shifang(id) {
  return request({
    url: '/mes/pro/analysis/shifang/' + id,
    method: 'get'
  })
}
